package cn.stylefeng.guns.sys.modular.metadataCol.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

/**
 * <p>
 * 数据元表
 * </p>
 *
 * @author author
 * @since 2020-11-19
 */
@TableName("data_metadata_col")
public class MetadataCol implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 元数据编码
     */
    @TableField("metadata_id")
    private String metadataId;

    /**
     * 数据元编码
     */
    @TableId(value = "metadata_col_id", type = IdType.ID_WORKER)
    private String metadataColId;

    /**
     * 数据元对应的数据库表列名
     */
    @TableField("column_name")
    private String columnName;

    /**
     * 数据元名称
     */
    @TableField("metadata_col_name")
    private String metadataColName;

    /**
     * 数据元类型
     */
    @TableField("type")
    private String type;

    /**
     * 填写格式
     */
    @TableField("write_type")
    private String writeType;

    /**
     * 数据长度
     */
    @TableField("metadata_col_number")
    private Integer metadataColNumber;

    /**
     * 是否删除；0代表删除；1代表可用
     */
    @TableField("is_delete")
    private Integer isDelete;

    /**
     * 是否必填项
     */
    @TableField("is_required")
    private Integer isRequired;


    public String getMetadataId() {
        return metadataId;
    }

    public void setMetadataId(String metadataId) {
        this.metadataId = metadataId;
    }

    public String getMetadataColId() {
        return metadataColId;
    }

    public void setMetadataColId(String metadataColId) {
        this.metadataColId = metadataColId;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getMetadataColName() {
        return metadataColName;
    }

    public void setMetadataColName(String metadataColName) {
        this.metadataColName = metadataColName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getWriteType() {
        return writeType;
    }

    public void setWriteType(String writeType) {
        this.writeType = writeType;
    }

    public Integer getMetadataColNumber() {
        return metadataColNumber;
    }

    public void setMetadataColNumber(Integer metadataColNumber) {
        this.metadataColNumber = metadataColNumber;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getIsRequired() {
        return isRequired;
    }

    public void setIsRequired(Integer isRequired) {
        this.isRequired = isRequired;
    }

    @Override
    public String toString() {
        return "MetadataCol{" +
                "metadataId=" + metadataId +
                ", metadataColId=" + metadataColId +
                ", columnName=" + columnName +
                ", metadataColName=" + metadataColName +
                ", type=" + type +
                ", writeType=" + writeType +
                ", metadataColNumber=" + metadataColNumber +
                ", isDelete=" + isDelete +
                ", isRequired=" + isRequired +
                "}";
    }
}
